<?php

class Model_Code extends Model
{
	function __construct($id = 0)
	{
		parent::__construct();
		$this->properties['codes'] = array(
		    'id',
		    'bannerid',
			'siteid',
			'start_dt',
			'end_dt',
			'pages',
			'mainpage',
			'clicklimit',
			'showlimit',
			'showpercent',
			'scriptname',
			'shows',
			'clicks'
		);
		if ($id) $this->getById($id);
	}
}
